/*
 * Copyright 2008-2015 GuanAiHui inc. 
 */
package com.pretty.adminapp.pojo.model.um;

import com.pretty.adminapp.pojo.base.AutoIdBaseEntity;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * DataScope:
 *
 * @author Dennis Ge
 */
@Entity
@Table(name = "um_data_scope")
@DynamicInsert
@DynamicUpdate
public class DataScope extends AutoIdBaseEntity {

	@Column(name = "employee_id")
	private Long employeeId;

	@Column(name = "role_id")
	private Long roleId;

	@Column(name = "scope_type")
	private Integer type;

	@Column(name = "scope_value")
	private Long value;

	public static enum DataScopeTypeEnum{
		CITY
	}

	public Long getEmployeeId() {
		return employeeId;
	}

	public void setEmployeeId(Long employeeId) {
		this.employeeId = employeeId;
	}

	public Long getRoleId() {
		return roleId;
	}

	public void setRoleId(Long roleId) {
		this.roleId = roleId;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Long getValue() {
		return value;
	}

	public void setValue(Long value) {
		this.value = value;
	}

	@Override
	public String toString() {
		return "DataScope [employeeId=" + employeeId + ", roleId=" + roleId + ", type=" + type + ", value=" + value + "]";
	}

}
